#include "Core.h"
#include <QApplication>

Core::Core(bool _window, QWidget* _parent)
{
	window = _window;
	parent = _parent;

}

Core::~Core()
{

}

int Core::go(int argc, char *argv[])
{

	if(window)
	{
		QApplication app(argc, argv);
		ogl = new Canvas();
		ogl->show();
		ogl->startRendering();

		return app.exec();
	}
	else
	{
		ogl = new Canvas(parent);
		return 0;
	}
}
